package come.whvc

object Test5 {
  def main(args: Array[String]): Unit = {
    val batchSummary: (String, Int, Double) =
      ("2024-06-01", 9800, 0.94)

    val (date, recordCount, successRate) = batchSummary

    println(s"日期：$date，记录数：$recordCount，成功率：${successRate * 100}%")
  }

  val metric: (String, Double, Double) = ("UV", 1200.0, 1000.0)
  val (name, today, yesterday) = metric

  val growthRate = (today / yesterday - 1) * 100

  println(f"$name 同比增长率：$growthRate%.2f%%")

}
